package run.feignClient;

import entity.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "serverProviderApplication",contextId = "deptClient")
public interface DeptClient {

    @GetMapping("/dept/getInfo")
    public Dept getInfo(@RequestParam("deptNo")String deptNo);

}
